# Contributor: Lionel Voirol <lionel@sinux.ch>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ezstream
pkgver=1.0.2
pkgrel=4
pkgdesc="Ezstream is a command line source client for Icecast media streaming servers"
url="https://icecast.org/ezstream/"
arch="all"
license="GPL-2.0"
makedepends="libshout-dev libxml2-dev libvorbis-dev check-dev taglib-dev bsd-compat-headers"
subpackages="$pkgname-doc"
source="https://downloads.xiph.org/releases/ezstream/ezstream-$pkgver.tar.gz
	0001-Unconditionally-include-libgen.h-for-basename-3-func.patch"

prepare() {
	default_prepare
	update_config_guess
}

build() {
	./configure \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
54a11b6db9fd15259bbd3cfff11d95100b4c334e19a58a39b8b98f97300c57fbcaa19dabc751d93158ec3f7eb7a7101178c99d9eba193e49b7917ed5731aa48d  ezstream-1.0.2.tar.gz
f0654b9634dd28657792a5b81e18ee5afe4d7d06e41fac1f8f6ca9b863a31bc387308b8211af99eee5bace12ce2da5c2b460fdcdeaae5413b79a958b9b12ab87  0001-Unconditionally-include-libgen.h-for-basename-3-func.patch
"
